package world.zwq.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import world.zwq.common.utils.PageUtils;
import world.zwq.gulimall.product.entity.AttrGroupEntity;
import world.zwq.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhangwq
 * @email 768350451@qq.com
 * @date 2021-02-28 17:16:47
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 根据三级分类id获取分组以及所有属性信息
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

